package com.Bigbluebook.Service;

import com.Bigbluebook.entity.ApiResponse;
import com.Bigbluebook.entity.Follow;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface FollowService {
    @POST("/follows/follow")
    Call<Follow> followUser(@Query("followerId") Long followerId, @Query("followeeId") Long followeeId);

    @POST("/follows/unfollow")
    Call<Follow> unfollowUser(@Query("followerId") Long followerId, @Query("followeeId") Long followeeId);

    @GET("/follows/isFollowed")
    Call<Follow> isFollowed(@Query("followerId") Long followerId, @Query("followeeId") Long followeeId);

    @GET("/follows/followers")
    Call<ApiResponse<List<Follow>>> getFollowers(@Query("followerId") Long followerId);
}
